home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94a.txt
/
000084_icon-group-sender _Tue Apr 19 10:06:42 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-08-19
|
793b
Received: by cheltenham.cs.arizona.edu; Tue, 19 Apr 1994 12:28:32 MST
Date: Tue, 19 Apr 1994 10:06:42 MST
From: "Ralph Griswold" <ralph>
Message-Id: <199404191706.AA11050@cheltenham.cs.arizona.edu>
To: rjhare@festival.ed.ac.uk
Subject: Re: random numbers
Cc: icon-group
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
Your problem is because range is a string. ?s returns a randomly selected
character from the string s. Since the ? operator applies to a variety
of data types, you need to convert strings that look like integers to
integers -- which your test shows to work.
Ralph E. Griswold ralph@cs.arizona.edu
Department of Computer Science uunet!arizona!ralph
The University of Arizona 602-621-6609 (voice)
Tucson, AZ 85721 602-621-4246 (fax)